#FROM python:3.8.1-slim
FROM python:3.8

ENV PYTHONUNBUFFERED 1


EXPOSE 5000
WORKDIR /app

COPY . ./

RUN pip install -r requirements.txt -i https://pypi.douban.com/simple

CMD python main.py
#VOLUME /data/platform_audit/:/data/platform_audit/
#
#RUN apt-get update && \
#    apt-get install -y --no-install-recommends netcat && \
#    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#
#COPY poetry.lock pyproject.toml ./
#RUN pip install poetry==1.1 && \
#    poetry config virtualenvs.in-project true && \
#    poetry install --no-dev
#
#COPY . ./
#
#CMD poetry run alembic upgrade head && \
#    poetry run uvicorn --host=0.0.0.0 app.main:app